package com.yycwxt.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@TableName("sys_user")
public class User implements Serializable {


    @TableId(type = IdType.AUTO)
    private Integer id;
    @NotBlank(message = "不能为空", groups = {t1.class})
    @NotNull(message = "不能为空", groups = {t1.class})
    private String code;
    private String salt;
    @NotNull(message = "不能为空", groups = {t1.class})
    @NotBlank(message = "不能为空", groups = {t1.class})
    private String username;
    private String password;
    private String type;
    private String remark;
    private LocalDateTime created;

    public interface t1{

    }

}
